/**
 * Created by ${PRODUCT_NAME}.
 * User: skylerparr
 * Date: 12/19/10
 * Time: 5:26 PM
 * To change this template use File | Settings | File Templates.
 */
package com.thoughtorigin.deeplink.mock {
import com.asual.swfaddress.SWFAddressEvent;
import com.thoughtorigin.deeplink.BrowserHistory;

import flash.events.EventDispatcher;

public class MockBrowserHistory extends EventDispatcher implements BrowserHistory {
    public var _setHistory: Boolean;
    public var _setStrict: Boolean;
    public var _getPath: String = "/";
    public var _setValue: String;
    public var _getBaseUrl: String = "";

    public function MockBrowserHistory() {
    }

    public function setHistory(value:Boolean):void {
        _setHistory = value;
    }

    public function setStrict(value:Boolean):void {
        _setStrict = value;
    }

    public function getPath():String {
        return _getPath;
    }

    public function setValue(value:String):void {
        _setValue = value;
    }

    public function getBaseURL():String {
        return _getBaseUrl;
    }

    public function simulateInit(): void {
        dispatchEvent(new SWFAddressEvent(SWFAddressEvent.INIT));
    }

    public function simulateChange(): void {
        dispatchEvent(new SWFAddressEvent(SWFAddressEvent.CHANGE));
    }
}
}
